<!--
 * @Author: liubei
 * @Date: 2021-09-11 17:19:19
 * @LastEditTime: 2021-09-11 17:24:15
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="module">
        import imgUrl from './src/assets/plaid.svg';
        import imgUrl2 from '/logo.svg';

        console.log(imgUrl); // /src/assets/plaid.svg
        console.log(imgUrl2); // /logo.svg

        // build 模式下
        // var imgUrl = "/assets/plaid.10559d73.svg";
        // var imgUrl2 = "/logo.svg";

    </script>
</body>
</html>